package odgs.manager.filedb;

import java.io.Serializable;
import java.sql.Driver;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import odgs.Contents;
import odgs.ContentsFile;
import odgs.Directory;

public class FileDB implements Serializable
{
	private List<FileDBGridNode> gridNodes = new ArrayList<FileDBGridNode>();
	private List<FileDBDirectory> directorys = new ArrayList<FileDBDirectory>();
	private List<FileDBContents> contentss = new ArrayList<FileDBContents>();
	private List<FileDBContentsFile> files = new ArrayList<FileDBContentsFile>();
	private int gridNodeKey;
	private int directoryKey;
	private int contentsKey;
	private int filesKey;

	public List<FileDBGridNode> getGridNodeList()
	{
		return gridNodes;
	}
	
	public List<FileDBContents> getContentsList()
	{
		return contentss;
	}

	public List<FileDBDirectory> getDirectoryList()
	{
		return directorys;
	}

	public List<FileDBContentsFile> getContentsFileList()
	{
		return files;
	}

	public int getContentsPrimaryKey()
	{
		return ++contentsKey;
	}

	public int getDirectoryPrimaryKey()
	{
		return ++directoryKey;
	}

	public int getContentsFilePrimaryKey()
	{
		return ++directoryKey;
	}
}
